package com.sc.nft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.CopyrightAuctionRecord;
import com.sc.nft.entity.dto.CopyrightAuctionRecordAdminListDTO;
import com.sc.nft.entity.vo.CopyrightAuctionRecordAdminListVO;
import com.sc.nft.entity.vo.CopyrightAuctionRecordUserListVO;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 版权拍卖记录 服务类
 * </p>
 *
 * @author liGen
 * @since 2024-09-12
 */
public interface CopyrightAuctionRecordService {


    /**
     * 当前用户拍卖记录
     *
     * @param userId
     * @param mp
     * @return
     */
    IPage<CopyrightAuctionRecordUserListVO> copyrightAuctionRecordUserList(Long userId, Page mp);


    IPage<CopyrightAuctionRecordAdminListVO> copyrightAuctionRecordAdminUserList(CopyrightAuctionRecordAdminListDTO copyrightAuctionRecordAdminListDTO);

    /**
     * 获取已经开始并且未生成拍卖结果的记录
     *
     * @param now
     * @return
     */
    List<CopyrightAuctionRecord> getNotHaveResultList(Date now);

    /**
     * 修改是否生成拍卖结果
     *
     * @param id
     * @param haveResult
     * @return
     */
    Boolean updateHaveResult(Long id, Boolean haveResult);
}
